package com.example.hospitalManage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hospitalManage.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 蔡超华
 * @version 1.0
 * @description
 * @date 2022/12/17 16:58
 **/
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    /**
     * @param :
     * @return List<UserInfo>
     * @author GCT
     * @description TODO
     * @date 2023/1/2 21:51
     */
    List<UserInfo> findUsers();

    /**
     * @param phone:
     * @return UserInfo
     * @author GCT
     * @description TODO
     * @date 2023/1/2 21:55
     */
    UserInfo findUserByUserName(@Param("phone") String phone);

    /**
     * @param :
     * @return List<UserInfo>
     * @author GCT
     * @description TODO
     * 获取权限信息
     * @date 2023/1/2 21:51
     */
    List<String> getPermissions(@Param("phone") String phone);


}
